package cate.game.role.bag.inscription;

import cate.common.table.d.GDBag;
import cate.common.table.d.GDObj;
import cate.common.table.item.IBagItemTpl;
import cate.game.role.Role;
import cate.game.role.bag.BagContainer;
import cate.game.role.bag.inscription.msg.InscriptionAddResp;

import java.util.List;

public class InscriptionBag extends BagContainer<Inscription> {


    @Override
    public void initialize(Role role) {
        super.initialize(role);
    }


    @Override
    public int calcCapacity() {
        return GDBag.Capcity.INSCRIPTION;
    }

    @Override
    public IBagItemTpl getItemTpl(int templateId) {
        return role.getGame().table.inscription.base.get(templateId);
    }

    @Override
    protected byte getItemType() {
        return GDObj.Type.INSCRIPTION;
    }

    @Override
    protected InscriptionAddResp createItemAddMsg() {
        return new InscriptionAddResp();
    }

    @Override
    protected Inscription createItem(int tid, long num) {
        return new Inscription(role, tid, num);
    }

    public InscriptionBag() {
    }

    public InscriptionBag(Role role) {
        super(role);
    }

    @Override
    public void onEnter() {
        super.onEnter();
    }
}
